using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline.Processors;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;

namespace HadronData
{
    [ContentTypeWriter]
    public class LevelObjectivesContentTypeWriter : ContentTypeWriter<LevelObjectives>
    {
        protected override void Write(ContentWriter p_contentWriter,
            LevelObjectives p_levelObjectives)
        {
            p_contentWriter.Write(p_levelObjectives.DestroyAllEnemies);
            p_contentWriter.Write(p_levelObjectives.Countdown);
            p_contentWriter.Write(p_levelObjectives.MinimumCratesDelivered);
            p_contentWriter.Write(p_levelObjectives.MinimumScientistsRescued);
            p_contentWriter.Write(p_levelObjectives.MinimumReactorsDestroyed);
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            return typeof(LevelObjectivesContentTypeReader).AssemblyQualifiedName;
        }
    }
}
